package com.ws.haungjia.Service.ServiceImp;

import com.ws.haungjia.Bean.*;
import com.ws.haungjia.Service.LvxingService;
import com.ws.haungjia.mapper.LvxingMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LvxingServiceImp implements LvxingService {
    @Autowired
    private LvxingMapper lvxingMapper;

    @Override
    public List<luxian> chaxun() {
        return lvxingMapper.cha();
    }

    @Override
    public List<luxian> qiancha() {
        return lvxingMapper.qiancha();
    }

    @Override
    public int add(luxian luxian) {
        return lvxingMapper.add(luxian);
    }


    @Override
    public List<Fenlie> chafenlie() {
        return lvxingMapper.chafenlie();
    }

    @Override
    public List<Shangjia> chashangjia() {
        return lvxingMapper.chashangjia();
    }

    @Override
    public int shan(int id) {
        return lvxingMapper.shan(id);
    }

    @Override
    public luxian huixian(int id) {
        return lvxingMapper.huixina(id);
    }

    @Override
    public int xiugai(luxian luxian) {
        return lvxingMapper.xiugai(luxian);
    }

    @Override
    public List<luxian> sousuo(Luxianhuixian luxianhuixian) {
        return lvxingMapper.sousuo(luxianhuixian);
    }




//    轮播方法
    @Override
    public List<Lunbo> luncha() {
        return lvxingMapper.luncha();
    }

    @Override
    public int lunzeng(luxian luxian) {
        return lvxingMapper.lunzeng(luxian);
    }

    @Override
    public luxian lunhui(int id) {
        return lvxingMapper.lunhui(id);
    }

    @Override
    public int lunshan(int id) {
        return lvxingMapper.lunshan(id);
    }




//    附属图
    @Override
    public List<Fushutu> chafushu(int id) {
        return lvxingMapper.fushucha(id);
    }

    @Override
    public int fushuzeng(Fushutu fushutu) {
        return lvxingMapper.fushuzeng(fushutu);
    }

    @Override
    public int fushushan(int id) {
        return lvxingMapper.fushushan(id);
    }

    @Override
    public Fushutu xiangxicha(int packageID) {
        return lvxingMapper.xiangxicha(packageID);
    }

    @Override
    public luxian lushang(int packageID) {
        return lvxingMapper.lushang(packageID);
    }
//    前后


}
